<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <title>Recuperation d'un mot et de ses synonymes</title>
    </head>
    <body>
        <?php
        if(isset($_GET['mot']) AND $_GET['mot'] != null) {
            include 'fonctions.php';
            addWordsRecursive("dictionnaire.xml", $_GET['mot'],$_GET['limite']);
        ?>
        <form method="get" action="index.php">
            <input type="submit" value="Retour"/>
        </form>
        <?php
        }
        else {
        ?>
        <form method="get" action="index.php">
            <input type="text" name="mot"/>
            <input type="text" name="limite" value="10"/>
            <input type="submit" value="Ajouter"/>
        </form>
        <?php
        }
        ?>
    </body>
</html>